package com.zly.entity.block;

import com.fasterxml.jackson.databind.JsonNode;
import com.zly.entity.enums.BlockType;

public abstract class DynamicBlock {

    private final BlockType blockType;
    private final JsonNode contentNode;

    protected DynamicBlock(BlockType blockType, JsonNode contentNode) {
        this.blockType = blockType;
        this.contentNode = contentNode;
    }

    //getter
    public BlockType getBlockType() {
        return this.blockType;
    }

    public JsonNode getContentNode() {
        return this.contentNode;
    }

}
